package cn.edu.ujn.bmis.service.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import cn.edu.ujn.bmis.dao.SendEmailDao;
import cn.edu.ujn.bmis.model.SendEmail;
import cn.edu.ujn.bmis.service.SendEmailManager;

@Component("sendEmailManager")
public class SendEmailManagerImp implements SendEmailManager{
	

	private SendEmailDao sendEmailDao;
	
	public List<SendEmail> findSendEmail(String hql) {
		return sendEmailDao.findSendEmail(hql);
	}

	public boolean saveSendEmail(SendEmail sendEmail) {
		
		return sendEmailDao.saveSendEmail(sendEmail);
	}

	public SendEmailDao getSendEmailDao() {
		return sendEmailDao;
	}

	@Resource(name="sendEmailDao")
	public void setSendEmailDao(SendEmailDao sendEmailDao) {
		this.sendEmailDao = sendEmailDao;
	}
	
}
